﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;

namespace RM.Entities.Data.Map
{
    public class QuestionDetailsMap : ClassMap<QuestionDetails>
    {
        public QuestionDetailsMap()
        {
            Id(x => x.Id).Not.Nullable();
            References(x => x.Question);
            Map(x => x.Content).Length(10000);
            Map(x => x.CreatedDate).Not.Nullable();
            Map(x => x.ModifiedDate).Not.Nullable();
            References(x => x.CreatedBy);
            References(x => x.ModifiedBy);
        }

    }
}
